package icu.yougan.youganblogbackend.service;

import icu.yougan.youganblogbackend.common.Result;
import icu.yougan.youganblogbackend.model.Category;

import java.util.List;

public interface CategoryService {

    Result<List<Category>> list();

    Result<Category> getById(Integer id);

    Result<Category> add(Category category);

    Result<Category> update(Category category);

    Result<Boolean> delete(Integer id);
} 